how to create a stopwatch using javascript